/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-03-21
 * Time: 11:27
 */
class Animal{
    public String name;
    public int age;
    public int b = 10;
    public void eat(){
        System.out.println(this.name + "正在吃饭！");
    }
}
class Dog extends Animal{
    public int b = 100;
    public void bark(){
        System.out.println(b);
        System.out.println(super.b);
        System.out.println(this.name + " 正在旺旺旺！！");
    }
}

class Cat extends Animal{
    public void mimi(){
        final int a;
        a=100;
        System.out.println(a);
        System.out.println(this.name + "正在瞄瞄瞄！！！");
    }
}
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        //dog.bark();
/*        dog.age = 8;
        dog.name = "wangcai";
        dog.bark();
        dog.eat();*/
        System.out.println("=================");
        Cat cat = new Cat();
        cat.mimi();
/*        cat.age = 2;
        cat.name = "miaomiao";
        cat.mimi();
        cat.eat();*/

    }
}
